package com.cl.blog.web.client.home;

import com.cl.blog.annotation.Login;
import com.cl.blog.common.Result;
import com.cl.blog.service.BTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 付
 * @Date 2024-03-31 14:41
 * @Version 1.0
 * @description
 * @since 1.0
 */
@RestController
@RequestMapping("/user/type")
public class TypeController {

	@Autowired
	BTypeService bTypeService;

	@GetMapping("/list")
	@Login
	public Result list(){
		return Result.success(bTypeService.list());
	}
}
